<?php

namespace app\common\repository\articleComment;

use app\common\model\article\ArticleComment as ArticleCommentModel;

class C
{
    public function __construct(
        ArticleCommentModel $articleCommentModel
    )
    {
        $this->articleCommentModel = $articleCommentModel;
    }

    public function createArticleComment($entity)
    {
        $this->articleCommentModel->data($entity);
        $this->articleCommentModel->save();
        return $this->articleCommentModel;
    }
}
